package theTVDB.com.command
{
	import com.adobe.cairngorm.control.CairngormEvent;
	import mx.rpc.IResponder;
	import com.adobe.cairngorm.commands.ICommand;

	public class CallbackCommand implements IResponder, ICommand
	{
		protected var callback:Function;

		public function CallbackCommand()
		{
		}

		public function result(data:Object):void
		{
			if (callback != null)
				callback(data);
		}

		public function fault(info:Object):void
		{
			trace(info);
		}

		public function execute(event:CairngormEvent):void
		{
		}

	}
}
